<?php
namespace app\index\controller;
use think\Db;
class Invoice extends User{
    public function index(){
       return  $this->fetch();
    }
    public function getorders(){
       $data=input();
        dump($data);
        $where=[];
        $where['member_id']=1;
        if($data['orders']){
            $where['order_id']=['in',$data['orders']];
        }
        $orderlist=Db::name('order_goods')->select();
       // $orderlist=Db::name('order')->where($where)->select();
        dump($orderlist);
    }
}